package cn.stylefeng.guns.modular.rest.tcapi;

import cn.stylefeng.guns.modular.rest.tcapi.vo.AddOrderOutIby;
import cn.stylefeng.guns.modular.rest.tcapi.vo.AddOrderPutIby;
import cn.stylefeng.roses.core.reqres.response.ResponseData;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 1、出入库单据（入库单：采购入库单、盘盈入库、采购退货，出库单：销售出库、报损出库、盘亏出库），天财推送给零脉，每次推送1个单据，需要推送的单据推且只推一次。
 * 2、单据推送元素还是按照天财提供的查询接口中提供的数据项。
 * 3、推送的单据中，零脉需要的其他基础数据还是通过查询接口查询后，零脉自行处理。
 * 4、零脉接收到天财推送的单据后完成库内作业，作业完成后再回传给天财系统【需天财提供对应接口】
 */

@Api(tags = "潍坊天财商龙接口调用")
@Controller
@RequestMapping("/rest/wfgeTcApi")
public class WfgeTcApiController {


    /**
     * 添加入库单
     * @param addOrderPutIby
     * @return
     */
    @ApiOperation(value = "添加入库单", notes = "添加入库单")
    @ResponseBody
    @RequestMapping(value = "/addOrderPut", method = {RequestMethod.POST})
    public ResponseData addOrderPut(@RequestBody AddOrderPutIby addOrderPutIby) {


        return ResponseData.success();
    }

    /**
     * 添加出库单
     * @param addOrderOutIby
     * @return
     */
    @ApiOperation(value = "添加出库单", notes = "添加出库单")
    @ResponseBody
    @RequestMapping(value = "/addOrderOut", method = {RequestMethod.POST})
    public ResponseData addOrderOut(@RequestBody AddOrderOutIby addOrderOutIby) {

        return ResponseData.success();
    }


}
